.class Lcom/estrongs/android/pop/wxapi/h$c;
.super Ljava/lang/Object;
.source "WxApiManager.java"

# interfaces
.implements Lokhttp3/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/wxapi/h;->a(Lcom/estrongs/android/pop/wxapi/h$d;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/wxapi/h$d;

.field final synthetic b:Lcom/estrongs/android/pop/wxapi/h;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/wxapi/h;Lcom/estrongs/android/pop/wxapi/h$d;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/wxapi/h$c;->b:Lcom/estrongs/android/pop/wxapi/h;

    iput-object p2, p0, Lcom/estrongs/android/pop/wxapi/h$c;->a:Lcom/estrongs/android/pop/wxapi/h$d;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onFailure(Lokhttp3/Call;Ljava/io/IOException;)V
    .locals 1
    .param p1    # Lokhttp3/Call;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Ljava/io/IOException;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/pop/wxapi/h$c;->a:Lcom/estrongs/android/pop/wxapi/h$d;

    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object p2

    const/4 v0, -0x1

    invoke-interface {p1, v0, p2}, Lcom/estrongs/android/pop/wxapi/h$d;->a(ILjava/util/List;)V

    return-void
.end method

.method public onResponse(Lokhttp3/Call;Lokhttp3/Response;)V
    .locals 2
    .param p1    # Lokhttp3/Call;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Lokhttp3/Response;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-virtual {p2}, Lokhttp3/Response;->isSuccessful()Z

    move-result p1

    const/4 v0, -0x1

    if-nez p1, :cond_1

    .line 2
    invoke-virtual {p2}, Lokhttp3/Response;->code()I

    move-result p1

    const/16 p2, 0x193

    if-ne p1, p2, :cond_0

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/pop/wxapi/h$c;->a:Lcom/estrongs/android/pop/wxapi/h$d;

    invoke-interface {p1}, Lcom/estrongs/android/pop/wxapi/h$d;->a()V

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/pop/wxapi/h$c;->a:Lcom/estrongs/android/pop/wxapi/h$d;

    const/4 p2, 0x0

    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object v0

    invoke-interface {p1, p2, v0}, Lcom/estrongs/android/pop/wxapi/h$d;->a(ILjava/util/List;)V

    goto :goto_0

    .line 5
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/wxapi/h$c;->a:Lcom/estrongs/android/pop/wxapi/h$d;

    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object p2

    invoke-interface {p1, v0, p2}, Lcom/estrongs/android/pop/wxapi/h$d;->a(ILjava/util/List;)V

    :goto_0
    return-void

    .line 6
    :cond_1
    invoke-virtual {p2}, Lokhttp3/Response;->body()Lokhttp3/ResponseBody;

    move-result-object p1

    if-nez p1, :cond_2

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/pop/wxapi/h$c;->a:Lcom/estrongs/android/pop/wxapi/h$d;

    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object p2

    invoke-interface {p1, v0, p2}, Lcom/estrongs/android/pop/wxapi/h$d;->a(ILjava/util/List;)V

    return-void

    .line 8
    :cond_2
    invoke-virtual {p1}, Lokhttp3/ResponseBody;->string()Ljava/lang/String;

    move-result-object p1

    .line 9
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p2

    if-eqz p2, :cond_3

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/pop/wxapi/h$c;->a:Lcom/estrongs/android/pop/wxapi/h$d;

    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object p2

    invoke-interface {p1, v0, p2}, Lcom/estrongs/android/pop/wxapi/h$d;->a(ILjava/util/List;)V

    return-void

    .line 11
    :cond_3
    :try_start_0
    iget-object p2, p0, Lcom/estrongs/android/pop/wxapi/h$c;->b:Lcom/estrongs/android/pop/wxapi/h;

    iget-object v1, p0, Lcom/estrongs/android/pop/wxapi/h$c;->a:Lcom/estrongs/android/pop/wxapi/h$d;

    invoke-static {p2, p1, v1}, Lcom/estrongs/android/pop/wxapi/h;->a(Lcom/estrongs/android/pop/wxapi/h;Ljava/lang/String;Lcom/estrongs/android/pop/wxapi/h$d;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    .line 12
    :catch_0
    iget-object p1, p0, Lcom/estrongs/android/pop/wxapi/h$c;->a:Lcom/estrongs/android/pop/wxapi/h$d;

    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object p2

    invoke-interface {p1, v0, p2}, Lcom/estrongs/android/pop/wxapi/h$d;->a(ILjava/util/List;)V

    :goto_1
    return-void
.end method
